﻿using System;


namespace Account_Book_Contact_Class
{
    class Book
    {
        private string bookName;
        private string bookAuthor;
        private string bookId;
        private string bookType;
        private int bookCopy;
        static int bookCounter = 0;

        public Book()
        {
            this.bookName = "No Name";
            this.bookAuthor = "No Author";
            this.bookId = "No ID";
            this.bookType = "No Type";
            this.bookCopy = 0;
        }

        public Book(string name , string author , string id , string type , int copy)
        {
            this.bookName = name;
            this.bookAuthor = author;
            this.bookId = id;
            this.bookType = type;
            this.bookCopy = copy;
            bookCounter += copy;
        }

        public void ShowInfo()
        {
            Console.WriteLine("Book Name : " + this.bookName + "\nAuthor : " + this.bookAuthor + "\nID : " + this.bookId + "\nType : "+ this.bookType + "Available Copy : " + this.bookCopy);
        }

        public void AddBookCopy(int x)
        {
            this.bookCopy += x;
            bookCounter += x;
        }

        public static int ShowTotalBookInfo()
        {
            return bookCounter;
        }


    }
}
